home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / math / symbol65.zip / TORUS.IN < prev   
Text File  |  1996-05-17  |  435b  |  13 lines

  1. ; The following is the equation for a torus (donut) in 3D Cartesian space.
  2. ; "c" is the distance from the center of the hole
  3. ; to the center of the tube (major radius).
  4. ; "a" is the radius of the tube (minor radius).
  5. (c-(x^2+y^2)^.5)^2+z^2 = a^2
  6. y
  7. ;
  8. ; The following is the formula to compute the surface area of the torus:
  9. a1 = 2pi*(c+a)*(c-a) ; "a1" is the area.
  10. ;
  11. ; "v" = Volume of the torus:
  12. v = 1/4*pi^2*(a+c)*(c-a)^2
  13.